<?php

include "include/config.php";
include "include/functions.php";

if($id=="")die;
//echo $id;
//echo $text;
//echo $start;
//echo $end;
//echo $action;
//echo $table_name;`


if($action=="save")
{
mysql_query("UPDATE `$table_name` SET `start` = '$start',
`end` = '$end',
`text` = '$text' WHERE `id` ='$id' LIMIT 1 ;
");
//echo "done";
}

if($action=="done")
{
mysql_query("UPDATE `$table_name` SET `done` = '1' WHERE `id` ='$id' LIMIT 1 ;
");
//echo "done";
}


?>